#include <iostream>
#include <string>
#include <map>
using namespace std;

//https://www.nowcoder.com/questionTerminal/bb4f1a23dbb84fd7b77be1fbe9eaaf32

int main()
{
    string s1, s2;

    while (cin >> s1 >> s2)
    {
        int hash[26] = { 0 };
        for (auto& ch : s1) hash[ch - 'A']++;

        bool flag = true;

        for (auto ch : s2)
        {
            if (--hash[ch - 'A'] < 0)
            {
                flag = false;
                break;
            }
        }

        cout << (flag ? "Yes" : "No") << endl;
    }
    
    
    return 0;
}
